﻿// -----------------------------------------------------------------------
// <copyright file="Invoice_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Invoice_BLL
    {

        public static List<Invoice> GetAll()
        {

            return Invoice_DAL.GetAll();
        }
        public static List<Invoice> GetIOList(DateTime From, DateTime To, int componentID, int Type, int shipID)
        {
            return Invoice_DAL.GetIOList(From, To, componentID, Type, shipID);
        }
        public static bool Insert(Invoice Invoice)
        {
            return Invoice_DAL.Insert(Invoice);
        }
        public static Invoice GetDataById(int id)
        {
            return Invoice_DAL.GetDataById(id);
        }
        public static bool Update(Invoice Invoice)
        {
            return Invoice_DAL.Update(Invoice);
        }
        public static bool Delete(Invoice Invoice)
        {
            return Invoice_DAL.Delete(Invoice);
        }
        public static int GetOrderNumberVoucherOut()
        {
            return Invoice_DAL.GetOrderNumberVoucherOut();
        }

        public static int GetOrderNumberVoucherIn()
        {
            return Invoice_DAL.GetOrderNumberVoucherIn();
        }
        public static Invoice GetNewInvoice()
        {
            return Invoice_DAL.GetNewInvoice();
        }
    }
}
